﻿/*
   Author: Tomer Paz
   games.com
   2007
*/

/* CMD Response Event Object - dispatched by CMD once Server has responded with ByteArray */

package monopoly.CMD {
	
	import flash.events.Event;
	import monopoly.CMD.CMDResponse;

	public class CMDResponseEvent extends Event 
		{
		private var _CMDResponse:CMDResponse;
		
		/* event types */
		
		public static const RESPOND:String = "ServerRespond";
		
		// setter
		public function sCMDResponse(value:CMDResponse):void 
			{
         	_CMDResponse = value;
      		} 

		public function get gCMDResponse():CMDResponse
			{
         	return _CMDResponse;
      		}

		public function CMDResponseEvent(type:String, bubbles:Boolean = false,
										cancelable:Boolean = false) 
			{
         	super(type, bubbles, cancelable); 
			
			//var index:int = type.indexOf(Event.CHANGE);
			//if (index != -1) 
			//	_CMDResponse
      		}
		}
}